package com.hk.core.authentication.api.reactive;

import com.hk.core.authentication.api.UserPrincipal;
import reactor.core.publisher.Mono;

/**
 * @author Kevin
 * @date 2022-06-24 20:54
 */
public record UnsupportedReactiveSecurityContext() implements ReactiveSecurityContext {

    @Override
    public <T extends UserPrincipal> Mono<T> getPrincipalByType(Class<T> type) {
        throw new UnsupportedOperationException("UnsupportedOperation");
    }

    @Override
    public Mono<Boolean> isAuthenticated() {
        return Mono.just(Boolean.FALSE);
    }


}
